<template>
    <Child>
        <button>父组件按钮插槽</button>
    </Child>

    <Child>
        <template v-slot:btn>
            <button>父组件按钮具名插槽</button>
        </template>
        <template #btn1="scope">
            <!-- scope 收集子组件内部的slot标签的属性！在本体可任意使用！ -->
            <button>
                父组件按钮具名插槽1,简写 {{scope.title}} {{scope.mynum}}
            </button>
        </template>
    </Child>


</template>

<script lang='ts' setup>
import { reactive , toRefs } from 'vue'
import Child from './slotChild.vue'
let {  } = toRefs(reactive({
    
    
    
}))


</script>
 
<style lang="less" scoped>
    
</style>